<?php
$this->Html->script('controllers/Tests/admin.js?1', array('block' => 'scriptBottom'));
$appBosch = new stdClass();
$appBosch->types = $types;
$appBosch->crud = $this->TioCachas->urlsCRUD();
$appBosch->urlTests = $this->Html->url(array('controller' => 'Tests', 'action' => 'admin'));
$appBosch->urlThemes = $this->Html->url(array('controller' => 'Themes', 'action' => 'admin'));
$this->TioCachas->addWarning();
?>
    <script type="text/x-kendo-template" id="templateToolbar">
        <div class="toolbar">
            <span class="pull-left">
                <a class="k-button k-button-icontext k-grid-add" href="">
                    <span class="k-icon k-add"></span>
                    <?php echo 'Agregar curso'; ?>
                </a>
            </span>
            <span class="pull-left">
                <a class="k-button k-button-icontext k-grid-excel" href="">
                    <span class="k-icon k-i-excel"></span>
                    <?php echo __('Exportar a Excel'); ?>
                </a>
            </span>
        </div>
    </script>
    <div id="grid"></div>
<?php $this->start('jsVars'); ?>
    <script type="text/javascript">
        var appBosch = <?php echo json_encode($appBosch); ?>;
    </script>
<?php $this->end();
